.blog {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background-color: #f8f9fa; // 浅灰色背景
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 18px; // 增大基础字号
  font-weight: 500; // 中等加粗
  line-height: 1.8; // 增加行距
  color: #333;

  h1,
  h2,
  h3,
  h4 {
    color: #2c3e50;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.3;
    font-weight: 700; // 标题更粗
  }

  h1 {
    font-size: 2.2rem; // 增大标题字号
  }

  h2 {
    font-size: 1.8rem;
  }

  p {
    margin-bottom: 1.5em;
    font-size: 1.1rem; // 段落文字更大
  }

  a {
    color: #3498db;
    text-decoration: none;

    &:hover {
      text-decoration: underline;
    }
  }

  code {
    background: #f5f5f5;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9em;
  }

  pre {
    background: #282c34;
    color: #abb2bf;
    padding: 1em;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 1.5em;

    code {
      background: transparent;
      padding: 0;
    }
  }

  blockquote {
    border-left: 4px solid #3498db;
    padding-left: 1em;
    margin-left: 0;
    color: #666;
    font-style: italic;
  }

  img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5em auto;
  }
}
